from fsm import General
from config_reader import DB
import threading
from schedule import Worker

import logging


def main_thread():
    logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
    DB("./dbconfig.json")
    w = General('route_test.json')
    w.bootstrap()
    while True:
        pass


if __name__ == '__main__':
    threading.Thread(target=main_thread).start()
